import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Random random = new Random();
        int num = random.nextInt(101);
        while(true){
            System.out.println("请输入你的数字：");
            int a = scanner.nextInt();
            if(a>num){
                System.out.println("输大了");
            }else if(a<num){
                System.out.println("输小了");
            }else{
                System.out.println("等于");
                break;
            }
        }
    }
}
